Ejby is a small railway town in Middelfart Municipality. It lies between Odense station and Middelfart station, on the island of Funen, Region of Southern Denmark, Denmark. It has a population of 1,978 (1 January 2011)[1].
Until 1 January 2007, Ejby was the municipal seat of the former Ejby Municipality.